package com.ifengxue.plugin.entity;

import com.ifengxue.fastjdbc.annotations.Column;
import com.ifengxue.fastjdbc.annotations.Id;
import com.ifengxue.fastjdbc.annotations.Table;
import lombok.Data;

import java.io.Serializable;

@Data
@Table(name = "information_schema.COLUMNS")
public class ColumnSchema implements Serializable {

    private static final long serialVersionUID = -7523969607822355567L;
    @Id
    @Column(name = "COLUMN_NAME")
    private String columnName;

    @Column(name = "TABLE_SCHEMA")
    private String tableSchema;

    @Column(name = "TABLE_NAME")
    private String tableName;

    @Column(name = "ORDINAL_POSITION")
    private int ordinalPosition;

    @Column(name = "DATA_TYPE")
    private String dataType;

    @Column(name = "COLUMN_TYPE")
    private String columnType;

    @Column(name = "EXTRA")
    private String extra;

    @Column(name = "COLUMN_COMMENT")
    private String columnComment;

    @Column(name = "IS_NULLABLE")
    private String isNullable;

    @Column(name = "COLUMN_DEFAULT")
    private String columnDefault;

    @Column(name = "COLUMN_KEY")
    private String columnKey;


}
